package com.huike.web.controller.business;

import com.huike.business.service.ITbBusinessService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business/record")
public class OldBusinessController {
    @Autowired(required = false)
    private ITbBusinessService iTbBusinessService;

    //查询历史商机跟进记录
    @GetMapping("/list")
    public AjaxResult getOldBus(Long businessId) {
        //测试合并 新增
        return AjaxResult.success(iTbBusinessService.getBusDto(businessId));
    }
}
